#include "stm32f4xx.h"
#include "iic_moni.h"
#include "delay.h"
#include "structconfig.h"
#include "imu.h"
#include "led.h"

#define QMC5883L_ADDRESS  		0x0D 

#define QMC5883L_DATA 				0x00
#define QMC5883L_Temperature 	0x07
#define QMC5883L_Control_1 		0x09
#define QMC5883L_Control_2 		0x0A
#define QMC5883L_Period     	0x0B
#define QMC5883L_ID    				0x0D

extern INT16_XYZ QMC58831L_data,Mag_Off;
extern FLOAT_XYZ Mag_Scale;
extern float Mag_Yaw,Mag_yaw;
void QMC58831L_Init(void);
void QMC58831L_Read(void);
